<template>
    <div>
        <van-nav-bar
            title="我的订单"
            left-arrow
            @click-left="onClickLeft"
        />
        <ul class="Mlist">
            <router-link v-for="(item,i) in Mlist" :key="i" tag="li" to="/waitrecriving">
                <img src="https://img.yzcdn.cn/vant/cat.jpeg" alt="">
                <p>{{item}}</p>
            </router-link>
        </ul>
    </div>
</template>

<script>
    export default {
        name:'Myorder',
        data() {
            return {
                Mlist:['全部','待付款','待收货','待发货','已完成','评价','退款/售后']
            }
        },
        methods: {
            onClickLeft() {
                this.$router.go(-1)
            }
        }
    }
</script>

<style scoped>
    .Mlist{
        width: 100%;
        height: 100%;
        font-size: 14px;
    }
    .Mlist li{
        width: 100%;
        height: 66px;
        display: flex;
        align-items: center;
        border-bottom: 1px solid rgb(240, 240, 240)

    }
    .Mlist li img{
        display: block;
        width: 35px;
        height: 35px;
        margin: 0 20px;
        border-radius: 10px
    }
</style>